/**
 * Created by zhaomi on 16/5/16.
 */
var conn=require('../conf/mysql')
module.exports={
    insert_answer_question:function(topicId,isTrue,student,subject,answerTime,answer_use_time,lessonId,emoji,answer,cb){
        var options={
            sql:"insert into answer_question(answer_topic,istrue,student,subject,answer_time,answer_use_time,lesson_id,emoji,answer) values(?,?,?,?,?,?,?,?,?)",
            params:[topicId,isTrue,student,subject,answerTime,answer_use_time,lessonId,emoji,answer],
            handle:function(results){
                cb(results)
            }
        }
        conn.execQuery(options)
    }
}